//
//  UITableView+JMXCell.h
//  JMXChatKit
//
//  Created by JMX on 2020/6/24.
//  Copyright © 2020 Uniauto. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JMXMessage.h"

NS_ASSUME_NONNULL_BEGIN

extern NSString *JMXMessageCellIdentifier(id<JMXMessage> message);
extern NSString *JMXMessageCellIdentifierWithType(id<JMXMessage> message, NSString *type);

@interface UITableView (JMXCell)

- (nullable __kindof UITableViewCell *)dequeueReusableCellWithMessage:(id<JMXMessage>)message;
- (nullable __kindof UITableViewCell *)dequeueReusableCellWithMessage:(id<JMXMessage>)message type:(NSString *)type;

@end

NS_ASSUME_NONNULL_END
